package com.binson.common.core.constant;

/**
 * 缓存的key 常量
 */
public class CacheConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String HEADER = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";
    /**
     * 用户使用的平台
     */
    public static final String DETAILS_PLATFORM = "platform";

    /**
     * 用户的年级 只有学生有
     */
    public static final String DETAILS_LEVEL= "level";


    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";


    public static final String USER_TOKEN = "user:token:";


    public static final String USER_LOGIN_PLATFORM="user:platform:";


    public static final String USER_SINGLE="user:single:";

    public static final String ORDER_PACKAGE="class:group:";
}
